package com.chen.posp.exception;

/**
 * <p>
 * Title: 异常类基类
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: 版权信息
 * </p>
 * <p>
 * Company: 易宝支付
 * </p>
 * @author jiyong.ye
 * @version 1.0
 */
public class BaseException extends Exception {

	private static final long serialVersionUID = -5260258479391040805L;
	protected String message;

	public BaseException(String msg) {
		super(msg);
		message = msg;
	}

	public BaseException(String msg, Throwable ex) {
		super(msg, ex);
		message = msg;
	}

	public BaseException(Throwable ex) {
		super("", ex);

	}

	public String toString() {
		String str = super.toString();
		return str + "[" + message + "]";
	}

	public String getMessage() {
		return message;

	}
}
